package com.jgame.secondarymarket;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableGlobalMethodSecurity(prePostEnabled = true, jsr250Enabled = true)
@MapperScan("com.jgame.secondarymarket.domain.account.repository.db," +
        "com.jgame.secondarymarket.domain.product.repository.db")
@EnableSwagger2
public class SecondaryMarketApplication {

    public static void main(String[] args) {
        SpringApplication.run(SecondaryMarketApplication.class, args);
    }

}
